package com.yootk;
import java.io.*;
public class xunhuan {
    public  static  void main (String[] args) throws Exception{
        StringBuffer buffer = new StringBuffer();
        File file = new File("E:" + File.separator + "muyan" + File.separator + "vip" + File.separator + "yootk.txt");
        if (file.exists()) {
            try (InputStream input = new FileInputStream((file))) {
                byte data[] new byte[1024];
                int len = 0;
                while ((len = input.read(data))!= -1){
                    buffer.append(new String(data, 0,len));
                }
                System.out.println("读取到的数据内容[" + buffer + "]");
            }catch (Exception e) {
        }
    }
}
